* {
  margin: 0;
  padding: 0;
}

body {
  background: #fafafa;
  background: url('../images/bg.png')
}

::-webkit-scrollbar {
  display: none;
}

#wrap {
  width: 1065px;
  padding-top: 50px;
  margin: 0 auto;
  padding: 30px;
  background: rgb(255, 255, 255);
  border-radius: 2px;
  margin-top: 100px;
}

/* 整体容器 */
.__Img__container {
  font-size: 10px;
}

/* 分类容器 */
.__Img__container .__Img__classify {
  /* text-align: center; */
}

/* 分类按钮 */
.__Img__container .__Img__classify .__Img__classify__type-btn {
  display: inline-block;
  padding: .2em 1em;
  font-size: 1.6em;
  margin-right: 10px;
  cursor: pointer;
  border: 1px solid #e95a44;
  outline: none;
  color: #e95a44;
  transition: all .4s;
  user-select: none;
  border-radius: 2px;
}

/* 激活状态的分类按钮 */
.__Img__container .__Img__classify .__Img__classify__type-btn.__Img__type-btn-active {
  background: #e95a44;
  /* border: 1px solid #9b59b6; */
  color: #fff;
}

/* 所有图片容器 */
.__Img__container .__Img__img-container {
  position: relative;
  margin-top: 30px;
  width: 1005px;
  display: flex;
  flex-wrap: wrap;
  transition: all .6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 单个图片容器 */
.__Img__container .__Img__img-container figure {
  width: 240px;
  height: 140px;
  position: absolute;
  transition: all .6s cubic-bezier(0.77, 0, 0.175, 1);
  transform: scale(0, 0);
  opacity: 0;
  overflow: hidden;
  border-radius: 2px;
  user-select: none;
}

/* 伪元素遮罩层 */
.__Img__container .__Img__img-container figure::before {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 4;
  background: rgba(58, 12, 5, 0.5);
  content: ' ';
  font-size: 0;
  opacity: 0;
  transition: all .3s;
  cursor: pointer;
}

/* 图片 */
.__Img__container .__Img__img-container figure img {
  display: block;
  width: 100%;
  height: 100%;
  transition: all .3s;
}

/* 图片标题 */
.__Img__container .__Img__img-container figure figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  opacity: 0;
  font-size: 1.5em;
  color: rgb(255, 255, 255);
  transform: translate(-50%, -50%);
  transition: all .3s;
  text-align: center;
  cursor: pointer;
}

/* 悬停图片的时候标题显示 */
.__Img__container .__Img__img-container figure:hover figcaption {
  opacity: 1;
}

.__Img__container .__Img__img-container figure:hover img {
  transform: scale(1.1, 1.1);
}

/* 悬停图片的时候遮罩显示 */
.__Img__container .__Img__img-container figure:hover::before {
  opacity: 1;
}

.__Img__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all .3s;
  display: none;
}

.__Img__overlay .__Img__overlay-prev-btn,
.__Img__overlay .__Img__overlay-next-btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  text-align: center;
  line-height: 50px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.__Img__overlay .__Img__overlay-prev-btn {
  left: 20px;
}

.__Img__overlay .__Img__overlay-next-btn {
  right: 20px;
}

.__Img__overlay .__Img__overlay-prev-btn:active,
.__Img__overlay .__Img__overlay-next-btn:active {
  background: rgb(241, 241, 241, .4);
}

.__Img__overlay .__Img__overlay-next-btn::after {
  content: "N";
}

.__Img__overlay .__Img__overlay-prev-btn::after {
  content: "P";
}

.__Img__overlay img {
  transform: scale(2, 2);
}